/**
 * 新闻管理模块
 */

import request from '@/utils/request'

export const queryNewsPage = (params) => { 
    return request({ 
        method:'get',
        url:'/news/queryNewsPage',
        params
    })
}

export const selectNewsPage = data => { 
    return request({ 
        method:'post',
        url:'/news/selectNewsPage',
        data
    })
}

export const updateNews = data => {
    return request({ 
        method:'post',
        url:'/news/updateNews',
        data
    })
}

export const getNewsCount = data => { 
    return request({ 
        method:'post',
        url:'/news/getNewsCount',
        data
    })
}

export const addNews = data => { 
    return request({ 
        method:'post',
        url:'/news/addNews',
        data
    })
}

export const deleteNews = params => {
    return request({ 
        method: 'get',
        url: '/news/deleteNews',
        params
    })
}

export const deleteNewsList = params => { 
    return request({ 
        method:'get',
        url:'/news/deleteNewsList',
        params
    })
}